const mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/animals').then(() => {
  console.log('数据库链接成功！')
}, (err: any) => {
  console.log('数据库链接失败：', err);
});